import request from '@/utils/request'

// 查询实验室使用明细列表
export function listLabusage(query) {
  return request({
    url: '/labmanage/labusage/list',
    method: 'get',
    params: query
  })
}

// 查询实验室使用明细详细
export function getLabusage(usageId) {
  return request({
    url: '/labmanage/labusage/' + usageId,
    method: 'get'
  })
}

// 新增实验室使用明细
export function addLabusage(data) {
  return request({
    url: '/labmanage/labusage',
    method: 'post',
    data: data
  })
}

// 修改实验室使用明细
export function updateLabusage(data) {
  return request({
    url: '/labmanage/labusage',
    method: 'put',
    data: data
  })
}

// 删除实验室使用明细
export function delLabusage(usageId) {
  return request({
    url: '/labmanage/labusage/' + usageId,
    method: 'delete'
  })
}
